import 'package:flutter/material.dart';

class MyApp6 extends StatelessWidget {
  const MyApp6({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
        home: Scaffold(
            appBar: AppBar(
              title: const Text('Column组件'),
              backgroundColor: Colors.black26,
              centerTitle: true,
            ),
            body: Center(
              child: Container(
                // column========
                color: Colors.amber,
                // width: 300,
                // height: 400,
                // child: Column(
                //   //主轴对齐方式
                //   mainAxisAlignment: MainAxisAlignment.center,
                //   // 侧轴默认居中
                //   crossAxisAlignment: CrossAxisAlignment.center,
                //   children: [
                //     Image.network(
                //       'https://yanxuan-item.nosdn.127.net/72e734dd1a4d35ce650afebdaa600b57.png',
                //       width: 200,
                //     ),
                //     const Text('美妆效果嘎嘎不卡粉末面刷'),
                //     const Text('¥99.90')
                //   ],
                // ),
// row =======
                height: 100,
                child: Row(
                  mainAxisAlignment: MainAxisAlignment.spaceEvenly,
                  children: [
                    Image.network(
                        'https://yanxuan-item.nosdn.127.net/afd6199278a5b8fd783bc4947960fabc.jpg',
                        width: 80,),
                    const Text('茶水分离杯耐热隔热玻璃杯',
                    style: TextStyle(fontSize: 22),)
                  ],
                ),
              ),
            )));
  }
}
